//
//  DYInviteCell.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/14.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYInviteCell.h"

@implementation DYInviteCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)dy_initUI
{
    [super dy_initUI];
    
    [self xhq_noneSelectionStyle];
    self.sideMargin=0;
    
    [self addSubview:self.nameLabel];
    [self addSubview:self.timeLabel];
    
    [self.nameLabel makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.width.equalTo(kScreenWidth/2);
        make.left.equalTo(0);
    }];
    
    [self.timeLabel makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.width.equalTo(kScreenWidth/2);
        make.right.equalTo(0);
    }];
}

-(UILabel *)nameLabel
{
    if (!_nameLabel) {
        _nameLabel=[Utils labelWithTitle:@"用户名" titleFontSize:14 textColor:[UIColor xhq_aTitle] backgroundColor:WhiteColor alignment:1];
    }
    return _nameLabel;
}
-(UILabel *)timeLabel
{
    if (!_timeLabel) {
        _timeLabel=[Utils labelWithTitle:@"注册时间" titleFontSize:14 textColor:[UIColor xhq_aTitle] backgroundColor:WhiteColor alignment:1];
    }
    return _timeLabel;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
